﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using System.Threading.Tasks;

namespace LevelEditor.App.Serialization
{
    [XmlRoot("Tile")]
    public class SDoor : STile
    {
        private string nameRoom;
        [XmlElement("NameRoom")]
        public string NameRoom
        {
            get { return nameRoom; }
            set { nameRoom = value; }
        }

        private string loadLevel;
        [XmlElement("LoadNextPartLevel")]
        public string LoadNextPartLevel
        {
            get { return loadLevel; }
            set { loadLevel = value; }
        }

        private bool isOpen;
        [XmlElement("IsOpen")]
        public string IsOpen
        {
            get { return isOpen.ToString(); }
            set {
                string v = value;
                isOpen = Boolean.Parse(value);
            }
        }

        private bool isClosedForever;
        [XmlElement("IsClosedForever")]
        public string IsClosedForever
        {
            get { return isClosedForever.ToString(); }
            set
            {
                string v = value;
                isClosedForever = Boolean.Parse(value);
            }
        }

        private bool isBlocked;
        [XmlElement("IsBlocked")]
        public string IsBlocked
        {
            get { return isBlocked.ToString(); }
            set
            {
                string v = value;
                isBlocked = Boolean.Parse(value);
            }
        }



        public SDoor()
        {
            
        }
    }
}
